import java.util.Objects;

/**
 * 用户服务
 *
 * @author yuwei
 * @date 15:41 2024/4/24
 */
public class Employee  extends Position{
    private String name;
    public Employee(String departmentName, String position_nme, String name) {

        super(departmentName, position_nme);
        this.name = name;

    }

    @Override
    public String toString() {
        return
                "姓名" + name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Employee)) return false;
        if (!super.equals(o)) return false;
        Employee employee = (Employee) o;
        return Objects.equals(getName(), employee.getName());
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), getName());
    }





    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
